package com.feizhaiyou.test.entity;

import com.feizhaiyou.encrypt.annotation.Security;
import com.feizhaiyou.encrypt.annotation.Sensitive;
import com.feizhaiyou.encrypt.constants.SensitiveType;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author ls
 * @since 2023-07-28
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class Address {

    private String id;

//    @Sensitive(type = SensitiveType.ADDRESS)
    @Security(decrypt = false)
    private String address;

    @Sensitive(type = SensitiveType.DEFAULT)
    private String areaCode;
}
